home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Snippets / Development Tools & Languages / MouseInfo 1.0.1 / About.h < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.2 KB  |  52 lines  |  [TEXT/MPS ]

  1. //     About.h
  2. //     Copyright © 1992 by Apple Computer, Inc. All rights reserved.
  3. //    Kent Sandvik DTS
  4. //    This file contains the About box code including any adorners/behaviors
  5. //    The resources are placed in the project .r file
  6. //    Version Info (latest first):
  7. //
  8. //    <1>        khs        1.0        First final version
  9. //    <2>        khs        1.0.1    Fixed a memory leak in TMapApplication::GetSleepValue()
  10.  
  11.  
  12. #ifndef __ABOUT__
  13. #define __ABOUT__
  14.  
  15. #ifndef __MACAPP__
  16. #include <MacApp.h>
  17. #endif
  18.  
  19. #ifndef __RESOURCES__
  20. #include <Resources.h>
  21. #endif
  22.  
  23.  
  24. //    CONSTANTS
  25.  
  26. const unsigned short phAboutBox = 12000;        // our resource which resides in the .r file
  27. const ResType kVersInfoType = 'vers';            // for getting out the version info from the binary
  28. const ResNumber kVers1InfoID = 1;
  29. const IDType kBlueMetalLook = 'blmt';            // our AboutBox adorner ID
  30.  
  31.  
  32. //    FUNCTION PROTOTYPES
  33.  
  34. void CreateAboutBox();                            // the one and only function, place this inside the
  35. // TApplication->DoAboutBox(), and you are up and running!
  36.  
  37.  
  38. //    CLASSES
  39. //    Our adorner used inside the About Box resource
  40. class TMetalBlueFill : public TAdorner
  41. {
  42. public:
  43.     TMetalBlueFill();
  44.     virtual pascal void Draw(TView* itsView,
  45.                              const VRect&        /*area*/);
  46. };
  47.  
  48.  
  49.  
  50. #endif __ABOUT__
  51.  
  52.